package lab02.test35;

public class Test {
    public static void main(String[] args) {
        Manager manager=new Manager("张三",5000);
        Salesman salesman=new Salesman("李四",3000,30,50);
        Worker worker=new Worker("王五",25,90);
        System.out.println("经理 "+manager.getName()+"工资："+manager.computeSalary());
        System.out.println("销售人员 "+salesman.getName()+"工资："+salesman.computeSalary());
        System.out.println("工人 "+worker.getName()+"工资："+worker.computeSalary());
    }
}
